{% extends "kore2columns.html" %}
{% load i18n %}
{% load multimedia_extras %}

{% block main-content %}
{% regroup albums by album_category as category_list %}

{% for album_category in category_list %}
 
    <h2  style="text-align:center">{{ album_category.grouper }}</h2>
        {% for album in album_category.list %}
        	<a href="{% url album-detail album.id %}">
        	
		    <img src="{% thumbnail album.cover 100 100 %}" class="small-sticker"/>
		    
		    <b>{{ album.title }}</b>
		    <p>{{album.date|date:"Y" }} | {{ album.song_set.all|length }} {% trans 'titres' %}</p>
		    <div style="clear:both;"></div>
		    </a>
        {% endfor %}
{% endfor %}

{% endblock %}
